package com.infore.maintenance.main.service;

import com.infore.common.model.dto.TreeDto;
import com.infore.common.model.entity.TBaseDatasource;
import com.baomidou.mybatisplus.service.IService;
import com.infore.common.response.ApiResponse;
import com.infore.metadata.core.model.SimpleDataSource;
import com.infore.metadata.core.model.TableModel;

import java.util.List;

/**
 * <p>
 * 数据源 服务类
 * </p>
 *
 * @author lijh
 * @since 2022-12-20
 */
public interface TBaseDatasourceService extends IService<TBaseDatasource> {

    SimpleDataSource getDatabaseConnect(TBaseDatasource tbasedatasource);
    List<TreeDto>  getDatasourcesGroupByDatabaseType(String tableName);
    List<TreeDto> getDatasourcesAllTableInfo(String tableName);
//    List<TableModel> getTables(String databaseCode,String tableName);
    List<TableModel> getTablesColumns(String databaseCode,String tableName);

}
